[TOOLS] lomount: Fix printf formats inside #ifdef DEBUG.
authorkfraser@localhost.localdomain <kfraser@localhost.localdomain>
Wed, 2 Aug 2006 09:13:30 +0000 (10:13 +0100)
committerkfraser@localhost.localdomain <kfraser@localhost.localdomain>
Wed, 2 Aug 2006 09:13:30 +0000 (10:13 +0100)
Signed-off-by: Tristan Gingold <tristan.gingold@bull.net>
tools/misc/lomount/lomount.c

index d04a95bfc404689c08bdcffaf305158bc54f7363..7b86683bef4783f3becf0cebd00b5376d6c66a3e 100644 (file)
@@ -158,7 +158,7 @@ load_gpt (const char *diskimage, struct pentry *parttbl[])
        entry_size = read_le4 (&data[84]);
 
 #ifdef DEBUG
-       fprintf(stderr, "lba entries: %lu, nbr_part: %u, entry_size: %lu\n",
+       fprintf(stderr, "lba entries: %llu, nbr_part: %u, entry_size: %lu\n",
                entries_lba, nbr_part, entry_size);
 #endif
        part = malloc (nbr_part * sizeof (struct pentry));
@@ -404,7 +404,7 @@ int main(int argc, char ** argv)
           value is off by (larger than) a value less than one. */
        sec = 512; /* TODO: calculate real sector size */
 #ifdef DEBUG
-       printf("sec: %d\n", sec);
+       printf("sec: %llu\n", sec);
 #endif
        if (partition > nbr_part)
        {
@@ -421,7 +421,7 @@ int main(int argc, char ** argv)
 
        pnum = sec * num;
 #ifdef DEBUG
-       printf("offset = %d\n", pnum);
+       printf("offset = %llu\n", pnum);
 #endif
        snprintf(buf, sizeof(buf), "mount -oloop,offset=%lld %s %s",
                 pnum, diskimage, argv2);